package com.jnitest;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        final TextView fromc = findViewById(R.id.formc);
        fromc.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                fromc.setText(TestJni.runcommond(180) + "");
            }
        });

    }
}
